<template>
  <div>
    <!-- <van-nav-bar title="个人信息" left-arrow @click-left="left" /> -->
    <van-nav-bar title="个人信息" left-arrow @click-left="left">
      <template #right>
        <img src="../assets/个人中心/fanhuishouye.png" width="20" alt="" />
      </template>
    </van-nav-bar>
    <ul class="t">
      <li>
        <span>姓名</span>
        <span>{{Arr.name}}</span>
      </li>
      <li>
        <span>联系电话</span>
        <span>{{Arr.phone}}</span>
      </li>
    </ul>
    <ul class="b">
      <li>
        <span>姓别</span>
        <span>{{Arr.sex}}</span>
      </li>
      <li>
        <span>年薪</span>
        <span>{{Arr.month_salary}}</span>
      <li>
        <span>月薪</span>
        <span>{{Arr.year_salary}}</span>
      </li>
      <li>
        <span>个人简介</span>
        <span>{{Arr.remark}}</span>
      </li>
    </ul>
  </div>
</template>

<script>
import {UsersInfo} from '../request/api'
export default {
  data() {
    return {
        Arr:[]
    };
  },
  methods: {
    left() {
      this.$router.push("/userlest");
    },
  },
  created(){
      UsersInfo().then(res=>{
          console.log(res.data);
          this.Arr=res.data
      })
  }
};
</script>
 
<style lang = "less" scoped>
/deep/ .van-nav-bar__content {
  background: #003399;
  .van-nav-bar__title {
    color: #fff;
  }
  .van-icon {
    color: #fff;
  }
}
ul{
  margin-top: 10px;
  width: 100%;
  padding: 0 10px;
  box-sizing: border-box;
  background-color: #fff;
  li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-top: 1px solid #efefef;
    span:nth-of-type(1) {
      color: #333;
    }
    span:nth-of-type(2) {
      color: #999;
    }
  }
}
/* .b{
  width: 100%;
  padding: 10px;
  box-sizing: border-box;
  background-color: #fff;
  margin-top: 10px;
  li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-top: 1px solid #efefef;
    span:nth-of-type(1) {
      color: #333;
    }
    span:nth-of-type(2) {
      color: #999;
    }
  }
} */
</style>